package demo.spring.test180315;

/**
 * @Author: tyzhang
 * @Description:
 * @Date: Created in 22:43 2018/3/15
 */
public class InjectionServiceImp implements InjectionService {
    private InjectionDao injectionDao;

    public InjectionServiceImp(InjectionDao injectionDao) {
        this.injectionDao = injectionDao;
    }

    @Override
    public void save(String args) {
        //模拟业务操作
        System.out.println("service接收数据:" + args);
        args = args + ":" + this.hashCode();
        injectionDao.save(args);
    }


    //set赋值
    public void setInjectionDao(InjectionDao injectionDao) {
        this.injectionDao = injectionDao;
    }
}
